package com.bite.lesson2;

import java.util.Scanner;

public class Demo_05 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int ret = scanner.nextInt();
            //奇数位
            for (int i = 0; i < 32; i += 2) {
                System.out.print(((ret >> i) & 1) + "  ");
            }
            System.out.println();
            //偶数位
            for (int i = 1; i < 32; i += 2) {
                System.out.print(((ret >> i) & 1) + "  ");
            }
            System.out.println();
        }
    }
}
